package cn.kgc.mcartoon.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 漫画类型字典表
 * </p>
 *
 * @author christopher
 * @since 2021-09-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("mm_cartoon_classification_dic")
public class MmCartoonClassificationDicDO extends Model<MmCartoonClassificationDicDO> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
      @TableId(value = "dicId", type = IdType.AUTO)
    private Long dicid;

    /**
     * 漫画类型 1-->题材；2-->地区；3-->进度；4-->受众；5-->收费；6-->字母
     */
    private Integer type;

    /**
     * 漫画类型名称
     */
    private String name;


    @Override
    protected Serializable pkVal() {
        return this.dicid;
    }

}
